package com.lan.seriousphysics.screens.experimentMenus;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.lan.seriousphysics.SeriousPhysicsMain;
import com.lan.seriousphysics.screens.experimentos.MRUExperimento;
import com.lan.seriousphysics.screens.experimentos.experimental;

public class MRUScreen extends AbstractInitExpScreen {

	public MRUScreen(SeriousPhysicsMain game, String tit) {
		super(game, tit);
		// TODO Auto-generated constructor stub
	}
	
    @Override
    public void show()
    {
    		super.show();
    		
    	       TextButton botonGraficas = new TextButton( res.getString("MRU_BOT"), getSkin() );
    	       table.add( botonGraficas ).size(300, 55).spaceBottom(20);
    	       table.row();
    	       
   	        botonGraficas.addListener(new InputListener() {
	            public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
	            	
	            	game.setScreen(new MRUExperimento(game));
	            	return true;
	        }
	        
	});

 	       TextButton aux = new TextButton( res.getString("CAIDA_BOT"), getSkin() );
 	       table.add( aux ).size(300, 55).spaceBottom(20);
 	       table.row();
 	      aux.setVisible(false);

    	
    }

}
